import java.util.ArrayList;
import java.util.List;

public abstract class Event implements Runnable, Comparable<Event>
{
	protected final Time eventTime;
	protected final List<Employee> members;
	
	protected int priority;

	public Event(Time eventTime, Employee member)
	{
		List<Employee> members = new ArrayList<Employee>();
		members.add(member);
		this.eventTime = eventTime;
		this.members = members;
	}

	public Event(Time eventTime, List<Employee> members)
	{
		this.eventTime = eventTime;
		this.members = members;
	}

	public List<Employee> getMembers()
	{
		return members;
	}

	public Time getEventTime()
	{
		return eventTime;
	}
	
	public int compareTo(Event e){
		return e.priority-this.priority;
		
	}
	
}
